package com.bjb.vr.common.exception;

import com.bjb.vr.common.result.BaseErrorCode;

/**
 * @description: 远程调用操作自定义异常
 * @author: HuJingBo
 * @time: 2022/2/27 22:03
 */
public class RpcException extends BaseException{

    public RpcException(String message) {
        super(message);
    }

    public RpcException(BaseErrorCode error) {
        this(error.getMessage());
        super.setCode(error.getCode());
        super.setMessage(error.getMessage());
    }
}
